package com.my.mvpframe.ui.lesson;

import com.my.mvpframe.R;
import com.my.mvpframe.base.app.BaseActivity;
import com.my.mvpframe.base.dagger.ActivityScoped;
import com.my.mvpframe.mvp.base.BasePresenter;
import com.my.mvpframe.utils.ToastUtil;

import javax.inject.Inject;

/**
 * Created by tomey on 2018/2/1.
 */

@ActivityScoped
public class LessonActivity extends BaseActivity implements LessonContract.View {
    @Inject
    LessonPresenter presenter;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_lesson;
    }

    @Override
    protected void initView() {
        presenter.takeView(this);
        presenter.showLessonData();
    }

    @Override
    protected void onResume() {
        super.onResume();

    }

    @Override
    protected BasePresenter initPresenter() {
        return presenter;
    }

    @Override
    public void showErrorTip(String msg) {

    }

    @Override
    public void showToast() {
        ToastUtil.ShowLong(this,"this is 木问题");
    }
}
